BCSS-23563 - feat(ecs-service): add ecs-service module#87
Open
dave4420 wants to merge 22 commits into
Open
Conversation
fe0f272 to
0d4df63
Compare
There was a problem hiding this comment.
Pull request overview
Adds a new ecs-service Terraform wrapper module to this repository (aligned to the context.tf tagging/naming pattern) and updates repo tooling so the new module is tracked by Dependabot and secret-scanning rules are less noisy.
Changes:
- Add
infrastructure/modules/ecs-servicewrapper aroundterraform-aws-modules/ecs/aws//modules/service(pinned to7.5.0) with README/inputs/outputs and provider lockfile. - Extend gitleaks configuration to better handle documentation/example IPs (incl. IPv6) and suppress a historical false positive.
- Register the new module directory in
.github/dependabot.yaml.
Reviewed changes
Copilot reviewed 10 out of 11 changed files in this pull request and generated 8 comments.
Show a summary per file
| File | Description |
|---|---|
| scripts/config/gitleaks.toml | Expands allowlisted IPv4 ranges and adds an IPv6 detection rule with allowlisting for documentation prefixes. |
| .gitleaksignore | Suppresses historical ipv6-rule false positives for older commits. |
| .github/dependabot.yaml | Adds infrastructure/modules/ecs-service so Dependabot monitors it. |
| infrastructure/modules/ecs-service/versions.tf | Declares Terraform/AWS provider version constraints for the new module. |
| infrastructure/modules/ecs-service/.terraform.lock.hcl | Provider lockfile for the module. |
| infrastructure/modules/ecs-service/context.tf | Adds the standard copied context.tf pattern pointing at ../tags. |
| infrastructure/modules/ecs-service/locals.tf | Derives local.service_name from context or explicit override. |
| infrastructure/modules/ecs-service/main.tf | Wires module inputs through to the upstream community ECS service submodule. |
| infrastructure/modules/ecs-service/variables.tf | Defines the module’s input variables (large surface mirroring upstream). |
| infrastructure/modules/ecs-service/outputs.tf | Exposes selected outputs from the upstream module for downstream stacks. |
| infrastructure/modules/ecs-service/README.md | Adds usage docs, conventions, and autogenerated terraform-docs section for the new module. |
Files not reviewed (1)
- infrastructure/modules/ecs-service/.terraform.lock.hcl: Generated file
Comment on lines
+510
to
+514
| variable "enable_fault_injection" { | ||
| description = "Enables fault injection and allows for fault injection requests to be accepted from the task's containers. Default is `false`" | ||
| type = bool | ||
| default = null | ||
| } |
Comment on lines
+735
to
+739
| variable "propagate_tags" { | ||
| description = "Specifies whether to propagate the tags from the task definition or the service to the tasks. The valid values are `SERVICE` and `TASK_DEFINITION`" | ||
| type = string | ||
| default = null | ||
| } |
Comment on lines
+232
to
+236
| variable "cluster_arn" { | ||
| description = "ARN of the ECS cluster where the resources will be provisioned" | ||
| type = string | ||
| default = "" | ||
| } |
Comment on lines
+929
to
+933
| variable "subnet_ids" { | ||
| description = "List of subnets to associate with the task or service" | ||
| type = list(string) | ||
| default = [] | ||
| } |
Comment on lines
+1
to
+6
| ################################################################ | ||
| # ECS Service-specific inputs. | ||
| # | ||
| # Naming, tagging and the master `enabled` switch come from | ||
| # context.tf via `module.this`. | ||
| ################################################################ |
Comment on lines
+258
to
+260
| - Create VPCs, subnets, or security groups. The caller is responsible for | ||
| networking; pass existing security group IDs via `security_group_ids` or let | ||
| the module create one via `create_security_group = true`. |
Comment on lines
+267
to
+268
| - Create CloudWatch log groups. Define these in your container definitions or | ||
| provision them separately. |
Comment on lines
+1
to
+6
| locals { | ||
| # Service name is derived from context. The community module receives | ||
| # module.this.name directly so that context-driven label ordering is | ||
| # preserved without an intermediate local in the common case. | ||
| service_name = var.service_name != null ? var.service_name : module.this.name | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
BCSS-23563
Description
Context
Type of changes
Checklist
Sensitive Information Declaration
To ensure the utmost confidentiality and protect your and others privacy, we kindly ask you to NOT including PII (Personal Identifiable Information) / PID (Personal Identifiable Data) or any other sensitive data in this PR (Pull Request) and the codebase changes. We will remove any PR that do contain any sensitive information. We really appreciate your cooperation in this matter.